package com.tank.aop;

import com.alibaba.dubbo.common.bytecode.Proxy;
import com.tank.dubbo.service.DemoService;
import com.tank.jdk8.Person;
import org.springframework.context.support.AbstractRefreshableConfigApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

/**
 * Created with IntelliJ IDEA.
 * User: SuQiEr
 * Date:2017/9/30
 * Time: 15:00
 * To change this template use File | Settings | File Templates.
 */
public class CopyOfDBTest {
    public static void main(String[] args) {
        AbstractRefreshableConfigApplicationContext context =
                new FileSystemXmlApplicationContext("E:\\workspace\\tank\\quiet-beauty\\quiet-jdk8\\" +
                        "src\\main\\java\\com\\tank\\dubbo\\service\\consumer\\applicationContext-aop.xml");
        context.start();
        System.out.println("..........................获取spring..........................");
        //PersonService demoService = (PersonService) context.getBean("personService"); // obtain proxy object for remote invocation
        PersonService demoService = new PersonService();
        demoService.sayHello();

        Proxy.getProxy(Student.class);
    }

}
